#region Using directives
using System;
using Microsoft.DirectX;
using SharpWind.Math;
#endregion

namespace SharpWind.Scene
{
	public class BasicCamera : Camera
	{
		public BasicCamera()
		{
			CreateProjectionMatrix( MathHelper.Pi / 3.0f,
									(float)Engine.Instance.Settings.Width / (float)Engine.Instance.Settings.Height,
									0.1f, 1000.0f );
			Update();
		}

		internal override void Update()
		{
			this.view = Matrix.LookAtLH( this.position, this.lookAt, this.up );
			this.boundingFrustrum.Rebuild( this );
		}
	}
}
